home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 24 / Mac Magazin and MacEasy Magazine CD - Issue 24.iso / Wissenschaft & Technik / ProgressCDEF ƒ / ProgressCDEF Demo ƒ / ProgressCDEF Demo.h < prev    next >
C/C++ Source or Header  |  1996-03-14  |  2KB  |  79 lines

  1. #include "Folders.h"
  2. #include "Traps.h"
  3.  
  4. short        HandleOSEvent(        EventRecord *event);
  5. void        DoEnDisabling(        DialogPtr d, short enable);
  6. void        MySetDialogFont(    DialogPtr d);
  7. void        PrepareActivateEvent( EventRecord *event);
  8. void        HandleActivateEvent( WindowPtr w, Boolean activate, EventRecord *event);
  9. void        DoIdle(                EventRecord *event);
  10. void        ConcatPStrings(        Str255 first, ConstStr255Param second);
  11. void        SetStrItem(            Str255 theStr, DialogPtr theDialog, short item);
  12. void        MakeFloatString(    Str255 s, double x, short places);
  13. void        UpdateValues(        DialogPtr d, double runs, double rate);
  14. void        MaxOversScrollbar(    DialogPtr d, short newTotal);
  15. void        SetDialogRect(        short id, DialogPtr d, short mnW, short mxW, short mnH, short mxH, short dfW, short dfH);
  16. void        SaveDialogRect(        DialogPtr d, short id);
  17. void        SavePreferences();
  18. void        OpenPreferencesFile();
  19. short        GetMinDepth(        Rect r);
  20. void        UpdateScores(        DialogPtr theDialog);
  21. void        InitScoreCard();
  22. void        DrawItemBox(        DialogPtr d, short theItem);
  23. void        DrawStr255At(        DialogPtr d, short theItem, Str255 theText);
  24. void        DrawShadow(            DialogPtr d);
  25. void        SetDValue(            DialogPtr theDlog, short theItem, short theCVal);
  26. short        GetDValue(            DialogPtr theDlog, short theItem);
  27. void        InitToolbox();
  28. void        MainEventLoop();
  29. void        BadAlert(             short errorNumber);
  30. void        HandleEvent(         EventRecord *event);
  31. void        HandleDiskInsert(     EventRecord *event);
  32. void        HandleKeyPress(     EventRecord *event);
  33. void        HandleMouseDown(     EventRecord *event);
  34. void        HandleMenuCommand( long menuResult);
  35. void         HandleUpdateEvent( EventRecord *e);
  36. void        HandleDialogClick( DialogPtr d, short i);
  37. void         DoQuit();
  38. void        DoAboutBox();
  39.  
  40.  
  41. typedef struct
  42. {
  43.     short        runs;
  44.     short        wkts;
  45.     short        competition;
  46.     short        ov;
  47.     short        isB;
  48.     short        balls;
  49. } ScoreRec, **ScoreHandle;
  50.  
  51.  
  52. #define NIL                    0L
  53. #define ON                    1
  54.  
  55. #define    mApple                128
  56. #define    iAbout                1
  57.  
  58. #define mFile                129
  59. #define    iQuit                1
  60.  
  61. #define    errWimpyROMs        1
  62. #define    errWimpySystem        2
  63. #define    errCorrupt            4
  64.  
  65.  
  66. Handle                ItemHandle;
  67.  
  68. ScoreRec            Score;
  69. SysEnvRec            gMac;
  70. DialogPtr            thisDialog, DLOGclicked, theWindow;
  71. RGBColor            darkGrey;
  72.  
  73. Rect                theBack, ItemRect;
  74. Boolean                Done = false, gQuit = false;
  75. short                gInBackground, count, ItemHit, ItemType, popUpItem, trophyOvers = 55;
  76. short                overArray[] = { 0, 40, 50, 55, 60}, tov, errno;
  77. short                runs, wkts, ov, PreferencesFile, ApplicationFile;
  78. long                menuChosen;
  79. Str255                theHMSstring, ScoreText;